﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GMLogging;

namespace ThouShaltNotBrick.Models
{
    public sealed class LevelData
    {
        #region Properties
        #region Name
        /// <summary>
        /// Name property.
        /// </summary>
        public string Name { get; private set; }
        #endregion

        private List<BrickData> mBricks;
        #endregion

        #region Constructors
        public LevelData(string pName, List<BrickData> pBricks)
        {
            if (pBricks == null)
            {
                Exception e = new ArgumentNullException("pBricks");
                Logger.Error(e.Message);
                throw e;
            }

            Name = pName;
            mBricks = pBricks;
        }
        #endregion

        #region Methods
        public List<BrickData> GetBricks()
        {
            return new List<BrickData>(mBricks);
        }
        #endregion
    }
}